/**
 * Created by IntelliJ IDEA.
 * User: akolonitsky
 * Date: 1/17/12
 * Time: 7:36 PM
 * To change this template use File | Settings | File Templates.
 */
package controller
{
    import model.ElfinProxy;

    import org.kolonitsky.alexey.debug.DebugWrapper;

    import org.puremvc.as3.interfaces.INotification;
    import org.puremvc.as3.patterns.command.SimpleCommand;

    public class GetAuthTokenCommand extends SimpleCommand
    {
        override public function execute(notification:INotification):void
        {
            DebugWrapper.trace("INFO: CMD > GetAuthTokenCommand")
            super.execute(notification);

            var sources:Array = notification.getBody() as Array;
            var proxy:ElfinProxy = facade.retrieveProxy(ElfinProxy.NAME) as ElfinProxy;
            proxy.getAuthToken(sources);
        }
    }
}
